﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PageTemplate.Master"
    AutoEventWireup="true" CodeBehind="StudentManager.aspx.cs" Inherits="FrameWork.web.Module.IntegralMS.IntegralMS.StudentManager.StudentManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveUrl("~/") %>inc/FineMessBox/css/subModal.css" />
    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>inc/FineMessBox/js/common.js"></script>
    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>inc/FineMessBox/js/subModal.js"></script>
    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>My97DatePicker/My97DatePicker/WdatePicker.js"></script>
    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="学员资料" HeadTitleTxt="学员资料管理">
        <FrameWorkWebControls:HeadMenuButtonItem ButtonName="学员" ButtonPopedom="List" ButtonUrl="Index.aspx"
            ButtonUrlType="Href" ButtonVisible="True" />
    </FrameWorkWebControls:HeadMenuWebControls>
    <%--<FrameWorkWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">--%>
    <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="学员资料"
        Tab_Visible="False">
        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
            <tr>
                <td class="table_body table_body_NoWidth" runat="server">
                    学员姓名
                </td>
                <td class="table_none table_none_NoWidth">
                    <input type="text" runat="server" title="请输入中文名~20:" id="S_Name" class="text_input" />
                    <%-- <asp:TextBox ID="S_Name" title="请输入中文名~20:" runat="server" CssClass="text_input"></asp:TextBox>--%>
                </td>
                <td class="table_body table_body_NoWidth">
                    班级
                </td>
                <td class="table_none table_none_NoWidth">
                    <span id="U_GroupID_Span" runat="server">
                        <input type="hidden" runat="server" name="S_ClassID" id="S_ClassID" />
                        <input runat="server" name="S_ClassID_Txt" id="S_ClassID_Txt" class="text_input"
                            readonly="readonly" />
                        <input type="button" value="选择班级" id="button3" name="buttonselect" onclick="javascript:ShowDepartID()"
                            class="cbutton" />
                        <input type="button" value="清除" onclick="javascript:ClearSelect();" class="cbutton" />
                    </span>
                </td>
            </tr>
           
            <tr>
                <td class="table_body table_body_NoWidth">
                    性别
                </td>
                <td class="table_none table_none_NoWidth">
                    <asp:DropDownList ID="S_Sex" runat="server">
                        <asp:ListItem Value="1">男</asp:ListItem>
                        <asp:ListItem Value="0">女</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="table_body table_body_NoWidth">
                    出生年月
                </td>
                <td class="table_none table_none_NoWidth">
                    <input id="S_BirthDay" title="请输入出生年月~:date" runat="server" class="text_input" onFocus="WdatePicker({startDate:'1980-05-01'})" />
                </td>
            </tr>
            <tr>
                <td class="table_body table_body_NoWidth">
                    身份证号码
                </td>
                <td class="table_none table_none_NoWidth">
                    <asp:TextBox ID="S_IDCard" title="请输入身份证号码~18:" runat="server" CssClass="text_input"></asp:TextBox>
                </td>
                <td class="table_body table_body_NoWidth">
                    手机号
                </td>
                <td class="table_none table_none_NoWidth">
                    <asp:TextBox ID="S_MobileNo" title="请输入手机号~11:" runat="server" CssClass="text_input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="table_body table_body_NoWidth">
                    家中电话
                </td>
                <td class="table_none table_none_NoWidth">
                    <asp:TextBox ID="S_HomeTel" title="请输入家中电话~13:" runat="server" CssClass="text_input"></asp:TextBox>
                </td>
                <td class="table_body table_body_NoWidth">
                    入学日期
                </td>
                <td class="table_none table_none_NoWidth">
                    <input id="S_StudyDate" title="请输入入学日期~:date" runat="server" class="text_input" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                </td>
            </tr>
        </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" id="PostButton"
            runat="server">
            <tr>
                <td align="right">
                    <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                    <input id="Reset1" class="button_bak" type="reset" value="重填" />
                </td>
            </tr>
        </table>
    </FrameWorkWebControls:TabOptionItem>
    <%-- </FrameWorkWebControls:TabOptionWebControls>--%>
    <script language="javascript">
       var MaxImgUrl = "<%=MaxImgUrl %>"; 
        rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 
    
    
    function AlertMessageBox(file_name)
    {

	        if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	                document.all.<%=this.S_ClassID_Txt.ClientID %>.value=ShValues[0];
	                document.all.<%=this.S_ClassID.ClientID %>.value=ShValues[1];
	            }            
	        }
	         
    }
      function ShowDepartID()
        {
            showPopWin('选择部门','SelectGroup.aspx?'+rand(10000000), 215, 255, AlertMessageBox,true,true)
        }
        function ClearSelect()
        {
   	        document.all.<%=this.S_ClassID_Txt.ClientID %>.value="";
            document.all.<%=this.S_ClassID.ClientID %>.value="";
        }
    </script>
</asp:Content>
